package com.wdz.tofs.tofs_menu.entity;

import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.enums.FieldFill;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 资源宝库菜单目录列表
 * </p>
 *
 * @author 吴传逞
 * @since 2021-04-16
 */
@TableName("tofs_menu")
public class TofsMenu extends Model<TofsMenu> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 组件路径
     */
    private String component;
    /**
     * 路由
     */
    private String path;
    /**
     * 菜单名字
     */
    private String name;
    /**
     * 上级菜单名字
     */
    @TableField("parent_menu_name")
    private String parentMenuName;
    /**
     * 上级菜单id
     */
    @TableField("parent_menu_id")
    private String parentMenuId;
    /**
     * 类型：0-目录，1-菜单
     */
    private Integer type;
    /**
     * 创建时间
     */
    @TableField(value = "create_date", fill = FieldFill.INSERT)
    private String createDate;
    /**
     * 修改时间
     */
    @TableField(value = "update_date", fill = FieldFill.INSERT_UPDATE)
    private String updateDate;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getComponent() {
        return component;
    }

    public void setComponent(String component) {
        this.component = component;
    }

    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getParentMenuName() {
        return parentMenuName;
    }

    public void setParentMenuName(String parentMenuName) {
        this.parentMenuName = parentMenuName;
    }

    public String getParentMenuId() {
        return parentMenuId;
    }

    public void setParentMenuId(String parentMenuId) {
        this.parentMenuId = parentMenuId;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public String getCreateDate() {
        return createDate;
    }

    public void setCreateDate(String createDate) {
        this.createDate = createDate;
    }

    public String getUpdateDate() {
        return updateDate;
    }

    public void setUpdateDate(String updateDate) {
        this.updateDate = updateDate;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "TofsMenu{" +
        ", id=" + id +
        ", component=" + component +
        ", path=" + path +
        ", name=" + name +
        ", parentMenuName=" + parentMenuName +
        ", parentMenuId=" + parentMenuId +
        ", type=" + type +
        ", createDate=" + createDate +
        ", updateDate=" + updateDate +
        "}";
    }
}
